#ifndef FRAME
#define FRAME

class Frame
{
    private:
        int sender;
        int destinationer;
        int frameType;
        char message[5];

    public:
        static const int ACK = 0;
        static const int NACK = -1;
        static const int FINISHED = -1;
        static const int DATA_FRAME = 1;
        static const int ACK_FRAME = 0;
        
        Frame();
        Frame(int, int, bool, char []);
        
        int getSender();
        int getDestinationer();
        int getFrameType();
        char* getMessage();

        void setSender(int);
        void setDestinationer(int);
        void setFrameType(int);
        void setMessage(char []);
        
        static Frame getNullFrame();
        static bool isNullFrame(Frame);
};
#endif
